package org.jeecg.modules.front.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 用户信息详情表
 * @Author: jeecg-boot
 * @Date:   2023-09-07
 * @Version: V1.0
 */
@Data
@TableName("bus_user_detail")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="bus_user_detail对象", description="用户信息详情表")
public class BusUserDetail {

    /**主键id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;
    /**手机号码*/
    @Excel(name = "手机号码", width = 15)
    @ApiModelProperty(value = "手机号码")
    private String phoneNum;
    /**2:个人，3:社区，4:企业*/
    @Excel(name = "2:个人，3:社区，4:企业", width = 15)
    @ApiModelProperty(value = "2:个人，3:社区，4:企业")
    private Integer type;
    /**姓名*/
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String realName;
    /**身份证号码*/
    @Excel(name = "身份证号码", width = 15)
    @ApiModelProperty(value = "身份证号码")
    private String idCard;
    /**身份证正面图片*/
    @Excel(name = "身份证正面图片", width = 15)
    @ApiModelProperty(value = "身份证正面图片")
    private String frontUrl;
    /**身份证背面图片*/
    @Excel(name = "身份证背面图片", width = 15)
    @ApiModelProperty(value = "身份证背面图片")
    private String backUrl;
    /**房产证/土地证号码*/
    @Excel(name = "房产证/土地证号码", width = 15)
    @ApiModelProperty(value = "房产证/土地证号码")
    private String credentialsCode;
    /**房产证/土地证图片*/
    @Excel(name = "房产证/土地证图片", width = 15)
    @ApiModelProperty(value = "房产证/土地证图片")
    private String credentialsUrl;
    /**企业名称*/
    @Excel(name = "企业名称", width = 15)
    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;
    /**社会统一代码*/
    @Excel(name = "社会统一代码", width = 15)
    @ApiModelProperty(value = "社会统一代码")
    private String societyUnionCode;
    /**社区*/
    @Excel(name = "社区", width = 15)
    @ApiModelProperty(value = "社区")
    private Integer communityId;
    /**社区名称*/
    @Excel(name = "社区名称", width = 15)
    @ApiModelProperty(value = "社区名称")
    @TableField(exist = false)
    private String communityName;
    /**营业执照图片*/
    @Excel(name = "营业执照图片", width = 15)
    @ApiModelProperty(value = "营业执照图片")
    private String licenseUrl;
    /**创建时间*/
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**创建人*/
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**修改时间*/
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**修改人*/
    @Excel(name = "修改人", width = 15)
    @ApiModelProperty(value = "修改人")
    private String updateBy;
}
